package com.tudouji.project.farmer.domain;

import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 种植批次对象 farmerbatch
 * 
 * @author tudouji
 * @date 2021-04-22
 */
public class Farmerbatch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String guid;

    /** 批次名称 */
    @Excel(name = "批次名称")
    private String name;

    /** 所属部门 */
    @Excel(name = "所属部门")
    private String deptguid;

    /** 状态 1-正常 2-禁用 */
    @Excel(name = "状态 1-正常 2-禁用")
    private Integer status;

    /** 操作人 */
    private String operatorid;

    private String departname;
    private String remark;
    private String condition = "none";
    private String[] depids;
    private Date createtime;

    public String getDepartname() {
        return departname;
    }

    public void setDepartname(String departname) {
        this.departname = departname;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public String[] getDepids() {
        return depids;
    }

    public void setDepids(String[] depids) {
        this.depids = depids;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public void setGuid(String guid)
    {
        this.guid = guid;
    }

    public String getGuid() 
    {
        return guid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDeptguid(String deptguid) 
    {
        this.deptguid = deptguid;
    }

    public String getDeptguid() 
    {
        return deptguid;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setOperatorid(String operatorid) 
    {
        this.operatorid = operatorid;
    }

    public String getOperatorid() 
    {
        return operatorid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("name", getName())
            .append("deptguid", getDeptguid())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("operatorid", getOperatorid())
            .append("createtime", getCreateTime())
            .toString();
    }
}
